﻿@model CodeStash.Common.DataAccess.EntityFramework.CodeSnippet

<div id="codeSnippet-@Model.CodeSnippetId" class="snippet">
    <p>
        <strong>Title:&nbsp</strong>@Model.Title<br />
        <strong>Description:&nbsp</strong>@Model.Description<br />
        <strong>Category:&nbsp</strong>@Model.CodeCategory.CodeCategoryName<br />
    </p>
    <div class="singleSnippetBounds">
        <div class="highlightedSnippetHeader">
            <div class="snippetActionArea link">
                <img src="../../Content/images/link.png" width="25px" alt="" />
            </div>
            <div class="tooltip">
                Get link for this code snippet</div>
            <div class="snippetActionArea collapse">
                <img src="../../Content/images/collapse.png" width="25px" alt="" />
            </div>
            <div class="tooltip">
                Collapse code snippet</div>
            <div class="snippetActionArea expand">
                <img src="../../Content/images/expand.png" width="25px" alt="" />
            </div>
            <div class="tooltip">
                Expand code snippet</div>
        </div>
        <div class="highlightedSnippet">
            @if (Model.Grouping != null)
            {
                <input class="isGrouped" type="hidden" value="true" />
                <input class="groupId" type="hidden" value="@Model.GroupId" />
                <input class="groupDescription" type="hidden" value="@Model.Grouping.Description" />
        
            }
            else
            {
                <input class="isGrouped" type="hidden" value="false" />
            }
            <input class="codeSnippetId" type="hidden" value="@Model.CodeSnippetId" />
            <pre class="brush: @CodeStash.Utils.WebSiteUtils.GetCodeClass(Model.Language.LanguageCode)">@Model.ActualCode.Trim()</pre>
        </div>
    </div>
    <br />
</div>
